package com.ys.entity.purchase;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_Distribution", catalog="Id")
public class TcgDistribution extends BaseEntity<TcgDistribution> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="GoodsId", nameJava="goodsId", typeDataBase="varchar")
	private String goodsId;
	@YsField(nameDataBase="SupplierId", nameJava="supplierId", typeDataBase="varchar")
	private String supplierId;
	@YsField(nameDataBase="Aname", nameJava="aname", typeDataBase="varchar")
	private String aname;
	@YsField(nameDataBase="SkuId", nameJava="skuId", typeDataBase="varchar")
	private String skuId;
	@YsField(nameDataBase="SpecId", nameJava="specId", typeDataBase="varchar")
	private String specId;
	@YsField(nameDataBase="Images", nameJava="images", typeDataBase="varchar")
	private String images;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="SkupRoperty", nameJava="skupRoperty", typeDataBase="varchar")
	private String skupRoperty;
	@YsField(nameDataBase="SkuCode", nameJava="skuCode", typeDataBase="varchar")
	private String skuCode;
	@YsField(nameDataBase="SalesMethod", nameJava="salesMethod", typeDataBase="varchar")
	private String salesMethod;
	@YsField(nameDataBase="Scode", nameJava="scode", typeDataBase="varchar")
	private String scode;
	@YsField(nameDataBase="Sname", nameJava="sname", typeDataBase="varchar")
	private String sname;
	@YsField(nameDataBase="Pcode", nameJava="pcode", typeDataBase="varchar")
	private String pcode;
	@YsField(nameDataBase="Pname", nameJava="pname", typeDataBase="varchar")
	private String pname;
	@YsField(nameDataBase="SupplierLoginId", nameJava="supplierLoginId", typeDataBase="varchar")
	private String supplierLoginId;
	@YsField(nameDataBase="MinNum", nameJava="minNum", typeDataBase="int")
	private Integer minNum;
	@YsField(nameDataBase="CreateUser", nameJava="createUser", typeDataBase="varchar")
	private String createUser;
	@YsField(nameDataBase="UpdateUser", nameJava="updateUser", typeDataBase="varchar")
	private String updateUser;
	@YsField(nameDataBase="State", nameJava="state", typeDataBase="varchar")
	private String state;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgDistribution setId(Long id) {
		this.id = id;
		return this;
	}
	public String getGoodsId() {
		return goodsId;
	}
	public TcgDistribution setGoodsId(String goodsId) {
		this.goodsId = goodsId;
		return this;
	}
	public String getSupplierId() {
		return supplierId;
	}
	public TcgDistribution setSupplierId(String supplierId) {
		this.supplierId = supplierId;
		return this;
	}
	public String getAname() {
		return aname;
	}
	public TcgDistribution setAname(String aname) {
		this.aname = aname;
		return this;
	}
	public String getSkuId() {
		return skuId;
	}
	public TcgDistribution setSkuId(String skuId) {
		this.skuId = skuId;
		return this;
	}
	public String getSpecId() {
		return specId;
	}
	public TcgDistribution setSpecId(String specId) {
		this.specId = specId;
		return this;
	}
	public String getImages() {
		return images;
	}
	public TcgDistribution setImages(String images) {
		this.images = images;
		return this;
	}
	public String getName() {
		return name;
	}
	public TcgDistribution setName(String name) {
		this.name = name;
		return this;
	}
	public String getSkupRoperty() {
		return skupRoperty;
	}
	public TcgDistribution setSkupRoperty(String skupRoperty) {
		this.skupRoperty = skupRoperty;
		return this;
	}
	public String getSkuCode() {
		return skuCode;
	}
	public TcgDistribution setSkuCode(String skuCode) {
		this.skuCode = skuCode;
		return this;
	}
	public String getSalesMethod() {
		return salesMethod;
	}
	public TcgDistribution setSalesMethod(String salesMethod) {
		this.salesMethod = salesMethod;
		return this;
	}
	public String getScode() {
		return scode;
	}
	public TcgDistribution setScode(String scode) {
		this.scode = scode;
		return this;
	}
	public String getSname() {
		return sname;
	}
	public TcgDistribution setSname(String sname) {
		this.sname = sname;
		return this;
	}
	public String getPcode() {
		return pcode;
	}
	public TcgDistribution setPcode(String pcode) {
		this.pcode = pcode;
		return this;
	}
	public String getPname() {
		return pname;
	}
	public TcgDistribution setPname(String pname) {
		this.pname = pname;
		return this;
	}
	public String getSupplierLoginId() {
		return supplierLoginId;
	}
	public TcgDistribution setSupplierLoginId(String supplierLoginId) {
		this.supplierLoginId = supplierLoginId;
		return this;
	}
	public Integer getMinNum() {
		return minNum;
	}
	public TcgDistribution setMinNum(Integer minNum) {
		this.minNum = minNum;
		return this;
	}
	public String getCreateUser() {
		return createUser;
	}
	public TcgDistribution setCreateUser(String createUser) {
		this.createUser = createUser;
		return this;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public TcgDistribution setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
		return this;
	}
	public String getState() {
		return state;
	}
	public TcgDistribution setState(String state) {
		this.state = state;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgDistribution setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgDistribution setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgDistribution setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgDistribution tcgDistribution(
		String goodsId,
		String supplierId,
		String aname,
		String skuId,
		String specId,
		String images,
		String name,
		String skupRoperty,
		String skuCode,
		String salesMethod,
		String scode,
		String sname,
		String pcode,
		String pname,
		String supplierLoginId,
		Integer minNum,
		String createUser,
		String updateUser,
		String state,
		Integer status
			) {
		TcgDistribution entity = new TcgDistribution();
		entity.setGoodsId(goodsId);
		entity.setSupplierId(supplierId);
		entity.setAname(aname);
		entity.setSkuId(skuId);
		entity.setSpecId(specId);
		entity.setImages(images);
		entity.setName(name);
		entity.setSkupRoperty(skupRoperty);
		entity.setSkuCode(skuCode);
		entity.setSalesMethod(salesMethod);
		entity.setScode(scode);
		entity.setSname(sname);
		entity.setPcode(pcode);
		entity.setPname(pname);
		entity.setSupplierLoginId(supplierLoginId);
		entity.setMinNum(minNum);
		entity.setCreateUser(createUser);
		entity.setUpdateUser(updateUser);
		entity.setState(state);
		entity.setStatus(status);
		return entity;
	}
}